﻿using Sumen.Business;
using DevExpress.XtraSplashScreen;
using Sumen.Library.Enum;
using Sumen.Library.Froms;

using Sumen.Business.Permission;


namespace Sumen.GUI.Category
{
    public partial class Frm_Role : XtraUserControlKira
    {
        
        public Frm_Role()
        {
            InitializeComponent();

            FormCode = EnumFormCode.FrmRole;
            ucDanhMuc1.btnArray.capQuyen(new Permission(FormCode.ToString(), ClsPublic.User.User_Username));
            this.Disposed += Frm_Customer_Type_Disposed;
        }

        void Frm_Customer_Type_Disposed(object sender, System.EventArgs e)
        {
            ClsPublic.WriteLog(FormCode, EnumFormStatus.Modify, "", "");
        }


        public override void Refresh()
        {
            base.Refresh();
            ucDanhMuc1.reLoad();
            ucDanhMuc1.reLoadParent();
        }










    }
}
